﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using SchemaMonitor;
using Framework;

public partial class usercontrols_UCTypeSimple : System.Web.UI.UserControl
{

    public void Display(CType t)
    {
        if (0 != this.Parent.Controls.Count % 2)
            row.Attributes.Add("class", "alt_row");

        lblName.Text = t.NameShort;
        lblName.ToolTip = CUtilities.Timespan(t.TypeCreated);

        lblTags.Text = CUtilities.CountSummary(t.UsedByTags, "tag", "none");
        lblTags.Text = CUtilities.ListToHtml(t.UsedByTags.Names);

        lblSigs.Text = CUtilities.ListToHtml(t.Signatures.Names);
        lblSigs.ToolTip = CUtilities.ListToString(t.Signatures.NamesAndCounts);
    }
}